﻿

namespace GameMenuControlPlatform
{
    public class UIManager
    {
        public static void CloseAllPages()
        {
            UIControllerManager.CloseAllPages();
        }


        public static Control_MainPage OpenMainPage()
        {
            return UIControllerManager.OpenPage(UIControllerName.MainPage) as Control_MainPage;
        }

        public static void CloseMainPage()
        {
            Control_MainPage page = UIControllerManager.GetController<Control_MainPage, UI_MainPage>(UIControllerName.MainPage);
            page.CloseView();
        }


    }
}
